@inherits PartialViewMacroPage
@using Umbraco.Cms.Web
@using Umbraco.Cms.Web.Macros
@using Umbraco.Framework
<div class="readingAid">
  <div class="commonAid @Model.MacroParameters.AidType">@Html.Raw(Model.MacroParameters.Line1)
  <br/>
  @if(String.IsNullOrEmpty(Model.MacroParameters.Link))
   {
    Html.Raw(Model.MacroParameters.Line2);
   }
   else
   {
    string target = (Model.MacroParameters.AidType == "externalLink") ? " target=\"_blank\"" : "";
     <a href="@Model.MacroParameters.Link" @target>@Model.MacroParameters.Line2</a>
   }
   </div>
</div>